package com.wbl.gulimall.order;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.core.env.ConfigurableEnvironment;

/**
 * Author: 王博纶
 * Date: 2024/5/30 12:27
 * FileName: OrderApplication
 * Description: 谷粒商城 订单 模块启动类
 */
@ComponentScan("com.wbl.gulimall")
@SpringBootApplication
public class OrderApplication {
    private static final Logger Log = LoggerFactory.getLogger(OrderApplication.class);

    public static void main(String[] args) {
        SpringApplication order = new SpringApplication(OrderApplication.class);
        ConfigurableEnvironment environment = order.run(args).getEnvironment();
        Log.info("启动成功！！");
        Log.info("网关地址：\thttp://127.0.0.1:{}",environment.getProperty("server.port"));
    }
}